<?php


namespace App\Controller;

use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\GetMapping;
use Hyperf\HttpServer\Annotation\PostMapping;

/**
 * Class ExtDictController
 * @package App\Controller
 *
 * @Controller(prefix="/ext/dict")
 */
class ExtDictController extends ExtStopwordsController
{

    protected function init()
    {
        $this->dictionary->extDict();
    }

    /**
     * @GetMapping(path="")
     * @return \Psr\Http\Message\ResponseInterface
     */
    public function index()
    {
        return parent::index();
    }

    /**
     * @GetMapping(path="json")
     * @return \Psr\Http\Message\ResponseInterface
     */
    public function show()
    {
        return parent::show();
    }

    /**
     * @PostMapping(path="append")
     */
    public function append()
    {
        return parent::append();
    }

    /**
     * @PostMapping(path="remove")
     */
    public function remove()
    {
        return parent::remove();
    }

    /**
     * 清洗数据
     * @GetMapping(path="flush")
     */
    public function flush()
    {
        return parent::flush();
    }

}